<?php

//
//      coreConf.php
//      PHPLibrary
//
//      Created by lvdonglin on 17/1/25.
//      
//
//      全局配置文件,该配置文件中的常量为必须项,请勿改动常量名称

error_reporting(E_ALL);
session_start();
if (DEBUG >= 1) {
    define('__USEMEM__', memory_get_usage());
    define('__USETIME__', microtime(true));
    error_reporting(E_ALL);
}

$path = explode('/', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')));
$basePath =  realpath(join('/', array_splice($path, 0, count($path) - 3)));
$path = join('/',array_splice($path, 0, -2));
//站点根目录
!defined('__ROOTPATH__') & define('__ROOTPATH__', $basePath.'/'.$path );
//站点根目录
!defined('__APPPATH__') & define('__APPPATH__', __ROOTPATH__.'/App' );
//核心框架根目录.
!defined('__COREPATH__') & define('__COREPATH__', $basePath.'/PHPLibrary');
//上传根目录
!defined('__PUBLICPATH__') & define('__PUBLICPATH__', __ROOTPATH__.'/Publics');

unset($basePath,$path);
//基础支持函数库
include_once( __COREPATH__ . '/Core/functions_base.php');
run();

